{extend name="public:_base" /}

{block name="main"}

<!--欢迎来到用户中心-->
<div class="user_conver">

    {include file="public:_right"}

    <!-- 我的信息 -->
    <div class="user_item my_data">
        <!-- 标题 -->
        <div class="user_item_title">
            <i class="glyphicon glyphicon-cog"></i>
            我的信息 <font>MY INFORMATION</font>
        </div>
        <!-- #标题 -->

        <!-- 内容 -->
        <div class="user_item_cont">
            <!-- 头像 -->
            <div class="user_item_touxiang">
                <p class="user_touxiang_img">
                    <a href="{:url('user/mydata/index')}">
                        {if condition="$user.image neq ''"}
                        <img src="__PUBLIC__/uploads/image/{$user.image}">
                        {else/}
                        <img src="__STATIC__/admin/login/images/user.png">
                        {/if}
                    </a>
                </p>

                <p class="user_touxiang_btn">
                    <a href="{:url('user/mydata/index')}">
                        更换头像<i class="glyphicon glyphicon-share"></i>
                    </a>
                </p>
            </div>
            <!-- #头像 -->

            <!-- 个人资料 -->
            <div class="user_item_detailed">
                <h3>欢迎来到个人中心</h3>
                <p><font>您好,</font> {$user.name}</p>
                <p>{:lang('Last Login Time')}: <font>{gt name="$user.last_login_time" value="5"}{$user.last_login_time|date="Y-m-d H:i:s",###}{/gt}</font></p>
                {empty name="$user.ismail"}
                <!--{:session('User.ismail','','User')}-->
                <p class="user_email">
                    <a href="#" onclick="checkmail()">
                        <i class="glyphicon glyphicon-envelope"></i>
                        <font class="user_email_off">邮箱未验证<i class="glyphicon glyphicon-exclamation-sign"></i></font>
<!--                        <font class="user_email_ok">邮箱已验证<i class="glyphicon glyphicon-check"></i></font>-->
                    </a>
                </p>
                {/empty}
            </div>
            <!-- 个人资料 -->
        </div>
        <!-- #内容 -->
    </div>
    <!-- #我的信息 -->

    <!-- 应聘信息 -->
    <div class="user_item my_data">
        <!-- 标题 -->
        <div class="user_item_title">
            <i class="glyphicon glyphicon-cog"></i>
            {:lang('Apply for information')} <font>APPLICATION INFORMATION</font>
        </div>
        <!-- #标题 -->

        <!-- 内容 -->
        <div class="user_item_cont user_info_cont">

            <div class="user_info_item">
                <div class="user_info_left">
                    <i class="glyphicon glyphicon-duplicate"></i>
                </div>

                <div class="user_info_right">
                    <h4>{:lang('The total amount')}</h4>
                    <p>{$jobapply['all']}</p>
                </div>
            </div>

            <div class="user_info_item">
                <div class="user_info_left">
                    <i class="glyphicon glyphicon-remove-circle"></i>
                </div>

                <div class="user_info_right">
                    <h4>{:lang('Not read')}</h4>
                    <p>{$jobapply['n']}</p>
                </div>
            </div>

            <div class="user_info_item">
                <div class="user_info_left">
                    <i class="glyphicon glyphicon-ok-circle"></i>
                </div>

                <div class="user_info_right">
                    <h4>{:lang('Read')}</h4>
                    <p>{$jobapply['y']}</p>
                </div>
            </div>

        </div>
        <!-- #内容 -->
    </div>
    <!-- #应聘信息 -->

    {eq name="$user.status" value="1"}
    <!-- 供应信息 -->
    <div class="user_item my_data">
        <!-- 标题 -->
        <div class="user_item_title">
            <i class="glyphicon glyphicon-cog"></i>
            {:lang('provide information')} <font>PROVIDE INFORMATION</font>
        </div>
        <!-- #标题 -->

        <!-- 内容 -->
        <div class="user_item_cont user_info_cont">

            <div class="user_info_item">
                <div class="user_info_left">
                    <i class="glyphicon glyphicon-duplicate"></i>
                </div>

                <div class="user_info_right">
                    <h4>{:lang('The total amount')}</h4>
                    <p>{$supply['all']}</p>
                </div>
            </div>

            <div class="user_info_item">
                <div class="user_info_left">
                    <i class="glyphicon glyphicon-remove-circle"></i>
                </div>

                <div class="user_info_right">
                    <h4>{:lang('Pending review')}</h4>
                    <p>{$supply['n']}</p>
                </div>
            </div>

            <div class="user_info_item">
                <div class="user_info_left">
                    <i class="glyphicon glyphicon-ok-circle"></i>
                </div>

                <div class="user_info_right">
                    <h4>{:lang('Audited')}</h4>
                    <p>{$supply['y']}</p>
                </div>
            </div>

        </div>
        <!-- #内容 -->
    </div>
    <!-- #供应信息 -->

    <!-- 采购信息 -->
    <div class="user_item my_data">
        <!-- 标题 -->
        <div class="user_item_title">
            <i class="glyphicon glyphicon-cog"></i>
            {:lang('Purchasing Information')} <font>PURCHASING INFORMATION</font>
        </div>
        <!-- #标题 -->

        <!-- 内容 -->
        <div class="user_item_cont user_info_cont">

            <div class="user_info_item">
                <div class="user_info_left">
                    <i class="glyphicon glyphicon-duplicate"></i>
                </div>

                <div class="user_info_right">
                    <h4>{:lang('The total amount')}</h4>
                    <p>{$Purchase['all']}</p>
                </div>
            </div>

            <div class="user_info_item">
                <div class="user_info_left">
                    <i class="glyphicon glyphicon-remove-circle"></i>
                </div>

                <div class="user_info_right">
                    <h4>{:lang('Pending review')}</h4>
                    <p>{$Purchase['n']}</p>
                </div>
            </div>

            <div class="user_info_item">
                <div class="user_info_left">
                    <i class="glyphicon glyphicon-ok-circle"></i>
                </div>

                <div class="user_info_right">
                    <h4>{:lang('Audited')}</h4>
                    <p>{$Purchase['y']}</p>
                </div>
            </div>

        </div>
        <!-- #内容 -->
    </div>
    <!-- #采购信息 -->
    {/eq}

</div>
<!--欢迎来到用户中心-->

{/block}
